package com.stu.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class ExcelData {

    @ExcelProperty("学号")
    private Integer stuId;
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("身份证号")
    private String ID;
    @ExcelProperty("报道时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
    @ExcelProperty("学院")
    private String collegeName;
    @ExcelProperty("专业")
    private String majorName;
    @ExcelProperty("班级")
    private String className;
    @ExcelProperty("状态")
    private String state;
    @ExcelIgnore
    private Integer status;
}
